package framework;

import java.io.Serializable;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@SessionScoped
public class EntityManagerFactory implements Serializable {

    @PersistenceContext
    EntityManager em;
	
    @Produces
    public EntityManager getEm() {
        return em;
    }
	
}